package com.weblog.follow.mapper;

import com.weblog.follow.entity.Focus;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author MaoLin Wang
 * @date 2019/10/3117:56
 */
@Mapper
public interface FocusMapper   {

    @Select("select *from tb_focus")
    List<Focus> findAll();

    @Select("select * from tb_focus where targetid =#{id}")
    List<Focus> fansList(String id);

    @Select("select * from tb_focus where userid =#{id}")
    List<Focus> focusList(String id);
}
